home *** CD-ROM | disk | FTP | other *** search
/ Clickx 115 / Clickx 115.iso / software / tools / windows / tails-i386-0.16.iso / live / filesystem.squashfs / usr / share / laptop-mode-tools / modules / eee-superhe < prev    next >
Encoding:
Text File  |  2012-05-20  |  758 b   |  27 lines

  1. #! /bin/sh
  2.  
  3. if [ x$SUPERHE_CONTROL_FILE = x ]; then
  4.     SUPERHE_CONTROL_FILE=/sys/devices/platform/eeepc/cpufv
  5.     log "VERBOSE" "Control file is $SUPERHE_CONTROL_FILE"
  6. fi
  7.  
  8. if [ x$CONTROL_SUPERHE = x1 ] || [ x$ENABLE_AUTO_MODULES = x1 -a x$CONTROL_SUPERHE = xauto ]; then
  9.     if [ $ON_AC -eq 1 ]; then
  10.         if [ $ACTIVATE -eq 1 ]; then
  11.             SUPERHE_VALUE="$LM_AC_SUPERHE"
  12.         else
  13.             SUPERHE_VALUE="$NOLM_AC_SUPERHE"
  14.         fi
  15.     else
  16.         SUPERHE_VALUE="$BATT_SUPERHE"
  17.     fi
  18.  
  19.     if [ -e $SUPERHE_CONTROL_FILE ]; then
  20.             echo $SUPERHE_VALUE > $SUPERHE_CONTROL_FILE
  21.             log "VERBOSE" "SuperHe triggered with value $SUPERHE_VALUE"
  22.     else
  23.             log "VERBOSE" "Platform does not support SuperHe"
  24.     fi
  25. fi
  26.  
  27.